export default {
  setStorage(key: string, val: any): void {
    localStorage.setItem(key, JSON.stringify(val));
  },
  getStorage(key: string): any {
    const val = localStorage.getItem(key);
    if (val) {
      return JSON.parse(val)
    }
    return null;
  },
  removeStorage(key: string): void {
    localStorage.removeItem(key);
  },
};
